<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312”>

<script type="text/javascript" src="<%=request.getContextPath()%>/js/credit/jquery.uitablefilter.js"></script>

<meta name="decorator" content="none" />

<s:textfield id="certificatenumber"/>
<br /><br />

<table class="table_box table_bottom_border" id="resultListTable" >
	
	<s:if test="type==1">
	<tr>
		<th><b>客户编号</b></th>
		<th><b>客户姓名</b></th>
		<th><b>身份证号码</b></th>
		<th><b>操作</b></th>
	</tr>
		<s:iterator value="personalList" status="index" var="var">
			<tr>
				<td>${id}</td>
				<td>${name }</td>
				<td>${certificatenumber }</td>
				<td>
				<s:form action="../credit/creditSearchOne_Personal_InforActoin!loadInforOne">
					<input type="hidden" name="clientID" value="${id }"/>
					<s:submit name="oneButton" class="getInfor" value="确定"/>
				</s:form>
			</tr>
		</s:iterator>
	</s:if>
	<s:elseif test="type==2">
	<tr>
		<th><b>客户编号</b></th>
		<th><b>中文全称</b></th>
		<th><b>法人代表</b></th>
		<th><b>操作</b></th>
	</tr>
		<s:iterator value="EnterpriseInforList" status="index" var="var">
			<tr>
				<td>${id}</td>
				<td>${name}</td>
				<td>${lawPeople}</td>
				<td>
				<s:form action="../credit/creditSearchOne_Enterprise_InforActoin!loadInforOne">
					<input type="hidden" name="clientID" value="${id }"/>
					<s:submit name="oneButton" class="getInfor" value="确定"/>
				</s:form>
				</td>
			</tr>
		</s:iterator>
	</s:elseif>
</table>

<script type="text/javascript">
<!--
$(function() { 
	$("#certificatenumber").keyup(function() {
		  alert("fuck");
	    $.uiTableFilter( theTable, this.value );
	  });
	//var theTable = $('table.table_box table_bottom_border');
	
	 // theTable.find("tbody > tr").find("td:eq(1)").mousedown(function(){
	 //   $(this).prev().find(":checkbox").click();
	//  });

	  

	 // $('#filter-form').submit(function(){
	//    theTable.find("tbody > tr:visible > td:eq(2)").mousedown();
	//    return false;
	//  }).focus(); //Give focus to input field
	});
//-->
</script>
